#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# Note: Expects to be ran out of $(repo)/build/mono-llvm-3.9

Makefile:
	@echo "Building package for $(LLVM_TARGET)"
	LDFLAGS="-L../../lib -lstdc++" cmake ../.. \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_C_FLAGS="-I../../include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DNDEBUG -D__NO_CTYPE_INLINE -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS" \
		-DCMAKE_CXX_FLAGS="-I../../include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DNDEBUG -D__NO_CTYPE_INLINE -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS" 

override_dh_auto_build: Makefile
	dh_auto_build

override_dh_auto_configure:
	echo "Skipping auto configure"

override_dh_usrlocal:
	echo "Skipping userlocal"

override_dh_auto_test:
	echo "Skipping test"

%:
	dh $@ 
